package cn.wonderland.system.mapper;

import cn.wonderland.org.vo.EmpAndRoleVo;
import cn.wonderland.system.domain.Role;
import cn.wonderland.base.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wonderland
 * @since 2023-01-03
 */
public interface RoleMapper extends BaseMapper<Role> {

    void addMiddle(@Param("empId") Long empId, @Param("roles") List<Long> roles);


    void delByEmpId(@Param("empId") Long empId);

    List<EmpAndRoleVo> findByEmpIds(List<Long> empIds);
}
